import request from '@/utils/request';

export function addZone(data) {
	return request({
		url: '/mall/zone/add',
		method: 'post',
		data: data,
	});
}
export function editZone(data) {
	return request({
		url: '/mall/zone/edit',
		method: 'post',
		data: data,
	});
}
export function getZoneList(data) {
	return request({
		url: '/mall/zone/list',
		method: 'post',
		data: data,
	});
}
export function getZoneInfo(data) {
	return request({
		url: '/mall/zone/getInfo',
		method: 'post',
		data: data,
	});
}
export function delZone(data) {
	return request({
		url: '/mall/zone/remove',
		method: 'post',
		data: data,
	});
}

export function getZoneGoodsList(data) {
	return request({
		url: '/mall/zoneGoods/list',
		method: 'post',
		data: data,
	});
}
export function addZoneGoods(data) {
	return request({
		url: '/mall/zoneGoods/add',
		method: 'post',
		data: data,
	});
}
export function editZoneGoods(data) {
	return request({
		url: '/mall/zoneGoods/edit',
		method: 'post',
		data: data,
	});
}
export function delZoneGoods(data) {
	return request({
		url: '/mall/zoneGoods/remove',
		method: 'post',
		data: data,
	});
}
export const sortOrderReduce = (id) => {
	return request({
		url: '/mall/zoneGoods/reSortOrderReduce',
		method: 'post',
		data: id,
	});
};
export const sortOrderPlus = (id) => {
	return request({
		url: '/mall/zoneGoods/reSortOrderPlus',
		method: 'post',
		data: id,
	});
};
